<template>
	<div class="wrapper" style="width: 100vw;min-height: 100vh;background-color: #F4F4F4;">
		<!-- 楼层装修组件 -->
		<tpl ref="tpl" />
	</div>
</template>
<script>
	import tpl from "@/pages/tabbar/home/views.vue";

	export default {
		data() {
			return {
				background: {
					backgroundColor: "#fff",
				},
			};
		},
		onShow() {
			setTimeout(() => {
				this.$refs.tpl.fetchCoupon();
			}, 1000)
		},
		methods: {

		},
		onReachBottom() {
			// 给子级监听触底加载
			uni.$emit('onReachBottom', true)
		},

		onPullDownRefresh() {
			this.$refs.tpl.getAllpage();

			uni.stopPullDownRefresh();
		},
		components: {
			tpl,
		},
	};
</script>

<style lang="scss" scoped>
</style>